package com.nanbei.sort;

import org.junit.Test;

import java.util.Arrays;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: libs
 * @Created: 2024/6/25 11:21
 */
public class SortTest {


    @Test
    public void bubblingTest(){
        int[] ints = {6, 1,3,2,4, 5};
        int[] bubbling = Sort.bubbling(ints);
        System.out.println(Arrays.toString(bubbling));
    }

    @Test
    public void selectionTest(){
        int[] ints = {6, 1,3,2,4, 5,9,7,8,0};
        int[] bubbling = Sort.selection(ints);
        System.out.println(Arrays.toString(bubbling));
    }

}
